package com.bjtu.transactionclient.dao;

import com.bjtu.transactionclient.domain.JournalChinese;
import lombok.Data;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author caiyuli
 * @date 2020/4/23 5:01 下午
 */

@Repository("JournalChineseDao")
public interface JournalChineseDao {

    @Select("select * from journaltable2 where IndexNo = #{indexNo}")
    JournalChinese queryByIndexNo(@Param("indexNo") String indexNo);

    Boolean add(JournalChinese journalChinese);

    @Select("select * from  journaltable2 where  ISSN = #{issn}" )
    List<JournalChinese> queryByIssn(@Param("issn") String issn);

}
